{% extends "./appMonitor/base.html" %}

{% block envhostinfo %}
<div class="content-hostInfo">
        <h4>各环镜启动应用信息</h4>
        <table class="table-bordered table-hover table-striped table-condensed text-left">
            <thead>
                <tr>
                    <th class="text-center">序号</th>
                    <th class="text-center">应用名</th>
                    <th class="text-center">运行环镜</th>
                    <th class="text-center">运行服务器</th>
                </tr>
            </thead>
            <tbody>
                {% for app in appList %}
                    <tr>
                        <td class="text-center">{{ forloop.counter }}</td>
                        <td>{{ app.appname }}</td>
                        <td>
                                {% for hosts in app.get_host %}
                                    {% for envs in hosts.get_env %}
                                        <span>{{ envs }},</span>
                                    {% endfor %}
                                {% endfor %}
                            </td>
                        <td>
                            {% for hosts in app.get_host %}
                                <i>{{ hosts }},</i>
                            {% endfor %}
                        </td>


                    </tr>
                {% endfor %}
            </tbody>
        </table>
</div>
{% endblock %}